package jmine.tec.persist.hibernate.initializer.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

import jmine.tec.persist.schema.association.ValueEntity;

/** 
 * @author wellington.santos
 * @created May 29, 2012
 */
@Entity
@DiscriminatorValue("3")
public class DiscriminatedChildEntity3 extends DiscriminatedParentEntity {

    private ValueEntity valueEntity;

    /**
     * @return valueEntity
     */
    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "COD_VALUE")
    public ValueEntity getValueEntity() {
        return this.valueEntity;
    }

    /**
     * @param valueEntity valueEntity
     */
    public void setValueEntity(ValueEntity valueEntity) {
        this.valueEntity = valueEntity;
    }
    
}
